LIMB ANGLE X
This command will return the real number X angle of the specified limb of the 3D object.
Return Float=LIMB ANGLE X(Object Number, Limb Number)
Object Number
Integer
The object number
Limb Number
Integer
The limb number
This command will return the real number x angle of the specified limb of the 3D object
Specifying a limb number of zero provides access to the objects own root data, and should not normally be used in this way. This command returns the manual euler angle from the limb, not the actual limb orientation might may additionally be influenced by the animation system or third party systems.
backdrop off : cls : sync on : sync rate 0 : hide mouse:cls 0
ObjectNumber=1
LimbNumber=1
load object "models\model.x",ObjectNumber
print "LIMBS"
print "exist:";limb exist(ObjectNumber, LimbNumber)
if limb exist(ObjectNumber, LimbNumber)=1
print "anglex:";limb angle x(ObjectNumber, LimbNumber)
print "angley:";limb angle y(ObjectNumber, LimbNumber)
print "anglez:";limb angle z(ObjectNumber, LimbNumber)
endif
while mouseclick()=0
sync
endwhile
if object exist(ObjectNumber)=1 then delete object ObjectNumber
end
BASIC3D Commands Menu
Index